package top.szhome.framework.starter.swagger.properties;

import io.swagger.v3.oas.models.info.Contact;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.PropertySource;

/**
 * @author 唐加利
 * @date 2023/7/26
 **/
@Data
@ConfigurationProperties(prefix = "szhome.swagger.info")
@PropertySource(value = "classpath:/application-swagger.properties", encoding = "UTF-8")
public class SwaggerProperties {

    /**
     * 接口文档标题
     */
    private String title;

    /**
     * 接口文档描述
     */
    private String description;

    /**
     * 接口版本
     */
    private String version;

    /**
     * 许可执照
     */
    private String license;

    /**
     * 许可执照地址
     */
    private String licenseUrl;

    /**
     * 服务条款链接
     */
    private String  termsOfServiceUrl;

    /**
     * 联系人信息
     */
    @NestedConfigurationProperty
    private Contact contact;

}
